package com.wzdigit.wms.basic.client.request.basic;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 创建仓库输入
 * @author yangdongjie
 * @GetWarehouseListRequest.java
 * @2020年12月31日下午3:40:49
 */
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler", "fieldHandler"}, ignoreUnknown = true)
public class CreateWareHouseRequest implements Serializable {

	private static final long serialVersionUID = -5812482285373909439L;

    /**
     * 仓库代码
     */
    @ApiModelProperty(value = "仓库代码", required = true)
    @NotBlank(message = "仓库代码不能为空！")
    private String whsCode;

    /**
     * 仓库名称
     */
    @ApiModelProperty(value = "仓库名称", required = true)
    @NotBlank(message = "仓库名称不能为空！")
    private String whsName;

    /**
     * 组织IKEY/部门ID
     */
    @ApiModelProperty(value = "组织IKEY/部门ID", required = true)
    @NotNull(message = "组织IKEY/部门ID不能为空！")
    private Integer deptId;

    /**
     * 类型
     */
    @ApiModelProperty(value = "类型", required = true)
    @NotNull(message = "类型不能为空！")
    private Integer whsType;

    /**
     * 班制ID
     */
    @ApiModelProperty(value = "班制ID", required = true)
    @NotNull(message = "班制ID不能为空！")
    private Integer shiftclassId;

    /**
     * 地址
     */
    @ApiModelProperty(value = "地址", required = false)
    private String address;

    /**
     * 存储条件
     */
    @ApiModelProperty(value = "存储条件", required = false)
    private String storeCondition;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注", required = false)
    private String comments;

    /**
     * 状态
     */
    @ApiModelProperty(value = "状态", required = true)
    @NotNull(message = "状态不能为空！")
    @Range(min = 0, max = 1, message = "状态错误")
    private Integer status;

    /**
     * 工厂
     */
    @ApiModelProperty(value = "工厂", required = false)
    private String facType;

    /**
     * 用户自定义字段1（类型名称）
     */
    @ApiModelProperty(value = "用户自定义字段1（类型名称）", required = true)
    @NotBlank(message = "用户自定义字段1（类型名称）不能为空！")
    private String udf1;

}
